package org.apache.struts.admin.action;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.struts.admin.model.UserGroup;
import org.apache.struts.ehr.medical_records.model.HL7Message;
import org.apache.struts.ehr.patient_details.model.*;

import com.earogya.communicate.Communicator;
import com.earogya.logic.patient_details.CreateADTA04;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class AddUsersToUserGroups extends ActionSupport{

	private List<UserGroup> userGroupsList;
	
	public String execute() throws Exception {
				userGroupsList=new ArrayList<UserGroup>();
		      userGroupsList.add(new UserGroup(1,"User"));
		      userGroupsList.add(new UserGroup(2,"Administrator"));
		      userGroupsList.add(new UserGroup(3,"Patient"));
		      userGroupsList.add(new UserGroup(4,"Doctor"));
		      userGroupsList.add(new UserGroup(5,"Nurse"));
		      userGroupsList.add(new UserGroup(6,"Consultant"));
		      userGroupsList.add(new UserGroup(7,"Admitting_Officer"));
		      userGroupsList.add(new UserGroup(8,"Pharmacist"));
		      return SUCCESS;		
	}
	
	

	public List<UserGroup> getUserGroupsList() {
		return userGroupsList;
	}



	public void setUserGroupsList(List<UserGroup> userGroupsList) {
		this.userGroupsList = userGroupsList;
	}



	public void validate(){
		
	}
	
}
